package com.asset.dispoal.department.domain.db.mapper;


import com.asset.dispoal.department.domain.db.entity.SysDepartmentDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 部门表JDBC接口
 *
 * @author: mhuang
 * @date: 2022-01-26 09:59:33
 */
@Mapper
public interface SysDepartmentMapper {

    void insert(@Param("sysDepartmentDo") SysDepartmentDo sysDepartmentDo);

    void update(@Param("sysDepartmentDo") SysDepartmentDo sysDepartmentDo);

    void delete(@Param("id") String id);

    List<SysDepartmentDo> queryAll(@Param("companyId") String companyId, String permission);

    SysDepartmentDo queryDefaultDepByCompanyType(@Param("companyType") String companyType);
}